package com.noahplat.device.feign;

import com.noahplat.common.utils.Result;
import com.noahplat.device.pojo.Device;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @InterfaceName: DeviceFeign
 * @Description: 设备对外feign
 * @Author 李景星
 * @Date 2021/3/9
 * @Version 1.0
 */
@FeignClient(name = "device")
public interface DeviceFeign {

    /**
     * 获取设备详细信息
     * @param imei
     * @return
     */
    @GetMapping("/api/device/getDevice")
    Result<Device> getDevice(@RequestParam("imei") String imei);
}
